package com.example.permission.service;

import com.example.permission.entity.Role;
import com.example.permission.entity.User;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * 角色服务层接口
 * @param
 */
public  interface RoleService extends BaseService<Role> {
    //通过角色id查找权限id
    List<Integer> getPermissionIdsByRoleId(Integer userId);
    //添加权限
    Integer addPermissionIdByRoleId(Integer permissionId, Integer roleId);
    //删除权限
    Integer removePermissionIdByRoleId(Integer id, Integer permissionId);
}
